package com.hwg.shiliupro.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwg.shiliupro.po.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    /**
     * 根据角色id查询出 角色--权限表信息
     *
     * @param rId r id
     * @return {@link List}<{@link RolePermission}>
     */
    @Select("select * from tb_role_permission where r_id = #{rId}")
    public List<RolePermission> selectPermissionsByRid(Integer rId);



}
